projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a17e8af
)
tikme_left in gbser_read_line can be negative - in fact, we depend on it
author
robertl
<robertl>
Tue, 29 Aug 2006 16:30:31 +0000
(16:30 +0000)
committer
robertl
<robertl>
Tue, 29 Aug 2006 16:30:31 +0000
(16:30 +0000)
for read timeouts to work...
gbser_win.c
patch
|
blob
|
history
diff --git
a/gbser_win.c
b/gbser_win.c
index 5b984ed824898a58a824b9e959d65f2664bd75d6..7c2fba2f105914b7f9b2de8d6e2351456e141f04 100644
(file)
--- a/
gbser_win.c
+++ b/
gbser_win.c
@@
-406,7
+406,7
@@
int gbser_read_line(void *handle, void *buf,
get_time(&tv);
bp[pos] = '\0';
for (;;) {
-
un
signed time_left = ms - elapsed(&tv);
+ signed time_left = ms - elapsed(&tv);
int c;
if (time_left <= 0) {
return gbser_TIMEOUT;